package cn.kent.config.receiver;

import cn.kent.config.RabbitConfig;
import org.springframework.amqp.rabbit.annotation.RabbitListener;

//@Component
public class MsgReciver {

    @RabbitListener(queues = RabbitConfig.CLUSTER_QUEUE_NAME)
    public void handleMsg(String msg) {
        System.out.println("msg = " + msg);
    }

}
